package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwSnnMapper;
import com.tjmc.tiomscore.model.TranPtnHwSnn;
import com.tjmc.tiomsresource.parser.CMSnnParser;
import com.tjmc.tiomsresource.service.CMSnnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Service("cmSnnService")
public class CMSnnServiceImpl extends CMSuperServiceImpl<TranPtnHwSnn> implements CMSnnService {

    @Autowired
    private CMSnnParser cmSnnParser;
    @Autowired
    private TranPtnHwSnnMapper tranPtnHwSnnMapper;

    @Override
    public CMSnnParser getParser() {
        return cmSnnParser;
    }

    @Override
    public TranPtnHwSnnMapper getMapper() {
        return tranPtnHwSnnMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "SNN");
    }
}
